<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
	 <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">上传类型:</label>
		<div class="col-xs-12 col-sm-8">
			   {:build_radios('row[import_type]', [1=>'基本信息',2=>'工资信息'],2 )}
		</div>
   
    </div>
    <div class="display_id">
			<div class="form-group">

		        <label class="control-label col-xs-12 col-sm-2">工资日期:</label>
		        <div class="col-xs-12 col-sm-8">
					<div class="form-inline" data-toggle="cxselect" data-selects="year">
						<select id="c-year" data-rule="required" class="form-control selectpicker" name="row[year]" >
							<?php for($i=2017; $i<=2028; $i++){ 
								$a = '';
							?>
							<option value="{$a}{$i}" <?php if($i == intval($DefaultsDate)) echo 'selected';?> >{$i}年</option>
						<?php } ?>
						
						</select>	
						<select id="c-month" data-rule="required" class="form-control selectpicker" name="row[month]" >
							<?php for($i=1; $i<=12; $i++){ 
								$a = '';
								if($i<10) $a = '0';
							?>
							<option value="{$a}{$i}" <?php if($i == intval($DefaultsDateM)) echo 'selected';?> >{$i}月</option>
						<?php } ?>
						
						</select>
						
					</div>
					<input type="hidden" id="DefaultsTime" value="{$DefaultsTime}">
		        </div>
		    </div>
  		</div>

   <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">文件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-import" class="form-control" size="50" name="row[import]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-import" class="btn btn-danger plupload" data-url="{:url('ajax/upload')}" data-input-id="c-import" data-mimetype="csv,xls,xlsx" data-multiple="false" data-preview-id="p-import"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                   
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
 <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">导入</button>
        </div>
    </div>
</form>
